﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Htss.Platform.WebApi
{
    public class VerifyItem
    {
        /// <summary>
        /// 异常提示文本
        /// </summary>
        public string ErrorText
        {
            get;
            set;
        }
        /// <summary>
        /// 通过提示文本
        /// </summary>
        public string ByText
        {
            get;
            set;
        }
        /// <summary>
        /// 正则文本
        /// </summary>
        public string RegexText
        {
            get;
            set;
        }
        /// <summary>
        /// 最小长度
        /// </summary>
        public int MinLength
        {
            get;
            set;
        }
        /// <summary>
        /// 最大长度
        /// </summary>
        public int MaxLength
        {
            get;
            set;
        }
        /// <summary>
        /// 需要比较的值
        /// </summary>
        public string CompareText
        {
            get;
            set;
        }
        /// <summary>
        /// 验证类型
        /// </summary>
        public VerifyType VerifyType
        {
            get;
            set;
        }
        /// <summary>
        /// 自定义验证结果
        /// </summary>
        public bool Custom
        {
            get;
            set;
        }
    }
}
